function instanceOf(L, R) {
	let L = L.__proto__
	let R = R.prototype
	while (L !== null) {
		if (L === O) return true
		L = L.__proto__
	}
	return false
}

var arr = []


instanceOf(arr, Array) // true
instanceOf(arr, Object) // true
